from google.appengine.ext import db

class Personal(db.Model):
	""" Personal Information """
	name              = db.StringProperty()
	company           = db.StringProperty()
	workDescription   = db.TextProperty()
	phone             = db.StringProperty()
	email             = db.StringProperty()
	address           = db.TextProperty()
	irdNumber         = db.StringProperty()
	bank              = db.StringProperty()
	bankNumber        = db.StringProperty()
	bankBranch        = db.StringProperty()
	bankAccountName   = db.StringProperty()

	@staticmethod
	def get():
		result = Personal.all().get()
		if not result:
			result = Personal()
			result.put()
		return result